
package com.trydofor.id.exec;

import com.trydofor.id.doer.shell.ArgHelp;
import com.trydofor.id.doer.shell.Command;

/**
 * @author : Shi Rongjiu (www.trydofor.com)
 */
public final class SystemCmd {
    
    private SystemCmd() {
    }
    
    /**
     * add system class path
     * 
     * @return the command
     */
    public static Command addClassPath() {
        Command cmd = new Command("addClassPath", "add a jar/directory to the system class path");
        ArgHelp arg = new ArgHelp("path");
        arg.setManual("a jar/directory path");
        arg.setRequired(true);
        cmd.addArgument(arg);
        return cmd;
    }
    
    /**
     * call Class.forName() for testing class
     * 
     * @return the command
     */
    public static Command classForName() {
        Command cmd = new Command("classForName", "call Class.forName()");
        ArgHelp arg = new ArgHelp("class");
        arg.setManual("the full path class");
        arg.setRequired(true);
        cmd.addArgument(arg);
        return cmd;
    }
}
